﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace NCS_CS
{
    public partial class MyInputBox : Form
    {
        public string s=null;
        public MyInputBox()
        {
            InitializeComponent();
        }
        public MyInputBox(string title)
        {
            InitializeComponent();
            this.Text = title;
        }
        public MyInputBox(string title,string defaultTxt)
        {
            InitializeComponent();
            this.Text = title;
            this.textBox1.Text=defaultTxt;
        }
        private void button1_Click(object sender, EventArgs e)
        {
            s = this.textBox1.Text;
            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            s = null;
            this.Close();
        }
    }
}
